<%@ page language="java" contentType="text/html; charset=utf-8"  pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <!--输出,条件,迭代标签库-->
<%@ page isELIgnored="false" %>
<!DOCTYPE html>
<html>
<head>
    <title>程序员博客-后台管理系统-用户管理</title>
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport' />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body class='contrast-red '>
<!-- 引入所需css文件 -->
<link href='assets/stylesheets/header.css' media='all' rel='stylesheet' type='text/css' />
<%--顶部小图标--%>
<link rel="shortcut icon " type="images/x-icon" href="assets/images/me.ico">
<%--引入jquery和自定义Js文件--%>
<script src='assets/javascripts/jquery/jquery.min.js' type='text/javascript'></script>
<script src="assets/javascripts/user/user.js" type="text/javascript"></script>
<%--测试是否登录--%>
<script src="assets/javascripts/admin/testlogin.js" type="text/javascript"></script>
<%--顶部开始--%>
<%@include file="topbar.jsp" %>
<%--顶部结束--%>
<div id='wrapper'>
<div id='main-nav-bg'></div>
<nav class='' id='main-nav'>
<div class='navigation'>
<div class='search'>
    <form accept-charset="UTF-8" action="template/search_results.html" method="get" /><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
        <div class='search-wrapper'>
            <input autocomplete="off" class="search-query" id="q" name="q" placeholder="Search..." type="text" value="" />
            <button class="btn btn-link icon-search" name="button" type="submit"></button>
        </div>
    </form>
</div>
    <%--左侧边栏开始--%>
    <%@include file="sidebar.jsp" %>
    <%--左侧边栏结束--%>
</div>
</nav>
<section id='content'>
<div class='container-fluid'>
<div class='row-fluid' id='content-wrapper'>
<div class='span12'>
<div class='row-fluid'>
    <div class='span12'>
        <div class='page-header'>
            <h1 class='pull-left'>
                <i class='icon-table'></i>
                <span>用户列表</span>
            </h1>
            <div class='pull-right'>
                <ul class='breadcrumb'>
                    <li>
                        <a href="/admin/index"><i class='icon-bar-chart'></i>
                        </a>
                    </li>
                    <li class='separator'>
                        <i class='icon-angle-right'></i>
                    </li>
                    <li class='active'>用户列表</li>
                </ul>
            </div>
        </div>
    </div>
</div>
<div class='row-fluid'>
<div class='span12 box bordered-box orange-border' style='margin-bottom:0;'>
<div class='box-content box-no-padding'>
<div class='responsive-table'>
<div class='scrollable-area'>
<table class='data-table table table-bordered table-striped' style='margin-bottom:0;'>
<thead>
<tr>
    <th>
        用户名
    </th>
    <th>
        邮箱
    </th>
    <th>
        手机
    </th>
    <th>
        创建时间
    </th>
    <th>
        状态
    </th>
    <th>操作</th>
</tr>
</thead>
<tbody class="userlist">
<c:forEach items="${blogUserList}" var="blogUser" >
    <tr>
    <td>${blogUser.username}</td>
    <td>${blogUser.email}</td>
    <td>${blogUser.phone}</td>
    <td>${blogUser.createtime}</td>
        <c:if test="${blogUser.status==1}"><td class="btn-danger">封禁</td></c:if>
        <c:if test="${blogUser.status==0}"><td class="btn-success">正常</td></c:if>
    <td>
        <div class='text-right'>
            <a title="编辑" class='btn btn-success btn-mini' href='#'>
                <i class='icon-edit'></i>
            </a>
            <a title="删除" class='btn btn-danger btn-mini' href='#'>
                <i class='icon-remove' ></i>
            </a>
        </div>
    </td>
    </tr>
</c:forEach>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
<%@include file="include_js.jsp" %>
</body>
</html>
